<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>网站发布 - 我的管理中心</title>
{include file="head"}
<link href="/static/thinkct/css/basic.css?v=1" rel="stylesheet" type="text/css" /><script language="javascript" src="/static/thinkct/js/jquery.m.js"></script><script language="javascript" src="/static/thinkct/js/layui/layui.js"></script><script language="javascript" src="/static/thinkct/js/common.js?v=1"></script><script language="javascript" src="/static/thinkct/js/member.js?v=1"></script><link href="/static/thinkct/css/member.css?v=1" rel="stylesheet" type="text/css" /><link href="/static/thinkct/js/layui/css/layui.css" rel="stylesheet" type="text/css" /><script language="javascript" src="/static/thinkct/js/plupload.js"></script><script language="javascript" src="/static/thinkct/js/upload.js"></script><script language="javascript" src="/static/thinkct/editor/js/wangEditor.min.js"></script><link href="/static/thinkct/editor/css/wangEditor.min.css" rel="stylesheet" type="text/css" /></head>
<body>
<!--头部-->
{include file="uhead"}

<!--头部-->
<div class="umain">
{include file="uleft"} 
<div class="uright">
<div class="mwz"><li class="cur">网站发布</li>
{if(state('web') == 0)}<li class="prompt r red">您当前发布信息，需要人工审核通过后才能展示！<a onclick="noauidt('web','');" style="color: #056dae;" data="state">如何免审?</a></li>{/if}</div>
<form class="layui-form layui-font14"  name="web" action="" method="post" enctype="multipart/form-data">
<div class="layui-form-item">
    <label class="layui-form-label">标题</label>
    <div class="layui-inline">
	<input  name="tit" class="layui-input" value="{$data.tit}" maxlength="50" style='width:300px;' lay-verify="tit" size="50" type="text" placeholder="一句话简单介绍下您的网站"/>
    </div> 
</div>

<div class="layui-form-item">
    <label class="layui-form-label">售价</label>
    <div class="layui-input-inline">
	<input  name="money" class="layui-input" value="{$data.money}" maxlength="8" lay-verify="money" size="10" type="text" placeholder="出售价格"/>
    </div><div class="layui-form-mid layui-word-aux">元  （不能低于100元）</div>   </div>



<div class="layui-form-item">
    <label class="layui-form-label">域名</label>
	    <div class="layui-input-block">

    <div class="layui-input-inline">
	<input  name="name" class="layui-input" value="{$data.name}" maxlength="30"  lay-verify="domain" size="30" type="text" placeholder="如：www.123.com"/>
    </div> <div class="layui-form-mid layui-word-aux">不含 http(s)://，如：www.123.com</div> </div>

 
</div>

<div class="layui-form-item">
    <label class="layui-form-label">流量</label>
    <div class="layui-input-inline">
	<input  name="ip" class="layui-input" value="{$data.ip}" maxlength="8" lay-verify="ip" size="10" type="text" placeholder="日均IP"/>
    </div><div class="layui-form-mid layui-word-aux">IP  （不能低于100IP；请如实填写，以免让购买者质疑您的出售诚意）</div></div>

<div class="layui-form-item">
    <label class="layui-form-label">收入</label>
    <div class="layui-input-inline">
		<input  name="profit" class="layui-input" value="{$data.profit}" maxlength="8" lay-verify="number" size="10" type="text" placeholder="每月收入"/>
    </div>
	<div class="layui-form-mid layui-word-aux">元  （近期网站月均收入）</div>   </div>

<div class="layui-form-item">
    <label class="layui-form-label">系统</label>
    <div class="layui-input-inline">
		<input  name="sys" class="layui-input" value="{$data.sys}" maxlength="20" lay-verify="required" size="10" type="text" placeholder="建站系统"/>
    </div>
	<div class="layui-form-mid layui-word-aux">（网站所使用的系统，如：dedecms、 discuz、自主开发）</div>   </div>

<div class="layui-form-item">
    <label class="layui-form-label updatas" >数据</label>
	<div class='layui-input-block'>
	 <div class="layui-inline">
	    		<input type="checkbox" lay-filter="au" name="updatas[]" {if strstr($data.updatas,'手动添加')}checked{/if} value="手动添加" ><label class="app_label">手动添加&nbsp;</label>
				<input type="checkbox" lay-filter="au" name="updatas[]" {if strstr($data.updatas,'采集更新')}checked{/if} value="采集更新" ><label class="app_label">采集更新&nbsp;</label>
				<input type="checkbox" lay-filter="au" name="updatas[]" {if strstr($data.updatas,'用户发布')}checked{/if} value="用户发布" ><label class="app_label">用户发布&nbsp;</label>
			</div>
	<div class="layui-inline"><div class="layui-form-mid layui-word-aux">（日常内容数据更新来源）</div></div>  	</div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">移动端</label>
	<div class='layui-input-block'>
	 <div class="layui-inline">
	<input type="checkbox" lay-filter="au" name="app[]" {if strstr($data.app,'Wap')}checked{/if} value="Wap" >
	<label class="app_label">Wap&nbsp;&nbsp;</label>
	<input type="checkbox" lay-filter="au" name="app[]" {if strstr($data.app,'App')}checked{/if} value="App" >
	<label class="app_label">App&nbsp;&nbsp;</label>
	<input type="checkbox" lay-filter="au" name="app[]" {if strstr($data.app,'小程序')}checked{/if} value="小程序" >
	<label class="app_label">小程序&nbsp;&nbsp;</label>
	<input type="checkbox" lay-filter="au" name="app[]" {if strstr($data.app,'自适应')}checked{/if} value="自适应" >
	<label class="app_label">自适应&nbsp;&nbsp;</label>
	<input type="checkbox" lay-filter="au" name="app[]" {if strstr($data.app,'公众服务号')}checked{/if} value="公众服务号" >
	<label class="app_label">公众服务号&nbsp;&nbsp;</label>	 </div>
	<div class="layui-inline"><div class="layui-form-mid layui-word-aux">（含有的移动端，不选则为不含）</div></div>
	</div>
</div>

<div class="layui-form-item">
    <label class="layui-form-label">服务器</label>
	<div class="layui-inline">
		<div class="layui-inline" style='margin-right:0;'><input type="radio" name="server" {if $data.server==1}checked{/if} value="1" title="包含"/></div>
		<div class="layui-inline" style='margin-right:0;'><input type="radio" name="server" {if $data.server!=1}checked{/if} value="0" title="不含"/></div>
    </div>
	<div class="layui-inline"><div class="layui-form-mid layui-word-aux">（是否包含服务器一起出售）</div></div> 
</div>



<div class="layui-form-item">
    <label class="layui-form-label">统计</label>
    <div class="layui-input-block delivery">
		<strong class="change {if $data.stats!='image'}cur{/if}">
			<input type='radio' name='stats' value='links' data=0 lay-filter='change' {if $data.stats!='image'}checked{/if} title='统计链接'>
		</strong> 
		<strong class="change {if $data.stats=='image'}cur{/if}">
			<input type='radio' name='stats' value='image' data=1 lay-filter='change' {if $data.stats=='image'}checked{/if} title='统计截图'>
		</strong>
				
		<div class="change_box">

			<div class="box" {if $data.stats=='image'}style='display:none;'{/if}>
				<div class="layui-form-item">
					<label class="layui-form-label">统计链接</label>
					<div class="layui-input-inline"><input class="layui-input" name="url" maxlength="80"  value="{$data.url}" size="80" type="text"  placeholder="第三方统计查看链接地址"></div>
									</div>

				<div class="layui-form-item">
					<label class="layui-form-label">查看密码</label>
					<div class="layui-input-inline"><input class="layui-input" name="pwd" maxlength="20"  value="{$data.pwd}" size="10" type="text" placeholder="统计查看密码(未设可留空)"></div>				</div>

				<div class="layui-form-item">
					<div class="notes">
						<li> <h3> 统计链接说明：</h3></li>
						<li><b>1.</b>有意购买者可通过您填写的统计连接和查看密码，查看网站统计；</li>
						<li><b>2.</b>如果您不想完全公布完整的统计数据，可设置基本的概况数据供查看；</li>
						<li><b>3.</b><font color="red">请勿填写虚假链接或错误查看密码，{:sysconf('site_name')}会不定期检查，若发现将予以永久禁售该网站甚至封号。</font></li>
					</div>
				</div>
			</div>

			<div class="box" {if $data.stats=='links'||$data.stats==''}style='display:none;'{/if}>
				<div class="layui-form-item">
					<div class="layui-block">
						<div class="upload-box" style='width:100%;border:0'>
							<div class="container" style='width:96%;margin:10px 2%'>
								<div class="statusBar">
									<div class="info" style='line-height:36px;color:#333'>
										至少上传1张，最多6张（含已传），尺寸不限，大小限3M，格式jpg/gif/png
									</div>
									<div class="btns">
										<a id="browse">选择截图</a>
									</div>
								</div>
								<table  class="fu_list"   id='pluing' style="display:none;" >
									<thead>
									<tr>
               <td width="65%">待传队列（<u>0</u>） <font color="#888">提示：待传队列为点击最后的“确认提交”时开始上传</font></td>
				<td width="21%" align="center"></td>
                <td width="14%" align="center">操作</td>
									</tr>
									</thead>
									<tbody id="FileListing">
									</tbody>
								</table>
								<div class="filelist">
								{volist name="filelist" id="v"}
									<div>
									<p class='imgWrap'><img src='{$v.url}'><span class='icon'>{$i}</span></p><p class='file-panel' style='height: 0px; overflow: hidden;'>
									<a class='fleft' title='前移（调整排序）'><span></span><i></i></a>
									<a class='fdel' id='{$v.tmp_name}' title='删除（不可恢复）'><span></span><i></i></a>
									<a class='fright' title='后移（调整排序）'><span></span><i></i></a></p>
									</div>			
								{/volist}								
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<div class="notes">
						<li> <h3> 统计截图说明：</h3></li>
					<li><b>1.</b>截图可以是概况、时段、日段、月段、关键词、搜索引擎等统计数据；</li>
					<li><b>2.</b>至少在某一张截图中能清晰看出是该网站（域名）的统计数据；</li>
					<li><b>3.</b>每张截图都应有其信息价值所在，不要重复或乱截，否则购买者可能质疑您的出售诚意。</li>
					</div>
				</div>
			</div>

		</div>
	</div>
</div>


  <div class="layui-form-item"><label class="layui-form-label">类型</label><div class="layui-input-block">{volist name="menus.type" id="v"}<input type='radio' name='menus' value='{$v.id}' {if $data.menus==$v.id||$i==1}checked{/if} title='{$v.name2}' >{/volist}</div></div>
<div class="layui-form-item">
    <label class="layui-form-label"> 缩略图</label>
    <div class="layui-input-block">
	<div class="layui-box layui-upload-button"><input type="file" name="file" {if($action == 'add')}lay-verify="required"{/if} id="picinp" class="layui-upload-file" accept="image/png,image/jpeg,image/gif" onchange="checkfile(this,'pic')"><span class="layui-upload-icon"><i class="layui-icon"></i>选择图片</span></div> <div class="layui-inline"> <div class="layui-form-mid layui-word-aux " style="color:red"></div></div>
	<br>
<div class="div_preview" pixel_data='0' size_data="1048576"  style='width:280px;height:220px;' id="pic">
{if($action == 'add')}<div class="preview_tips"><span><strong	 style='font-size:15px;'>缩略图(<font style='color:red;'>必传</font>)</strong> <p>一张清晰美观的缩略图会吸引买家的点击欲</p><p>尺寸最佳280x220，格式jpg/gif/png，大小限1M</p></span></div>
<img src="">{else}<img src="{:get_tp($data.bh)}">{/if}</div>
</div>
</div>
  <div class="layui-form-item">
    <label class="layui-form-label">详情介绍</label>
    <div class="layui-input-block form-textarea-box"><textarea name="txt" id='content' class="checkLen" >{$data.txt}</textarea></div>
</div>
<div class="layui-form-item" style='padding-bottom:15px;'>
    <label class="layui-form-label"></label>
    <div class="layui-input-block"><input type="submit" class="layui-btn" lay-submit=""  value="确认提交" /></div>
</div>
<div class="notes">
<li><h3>小提示：</h3></li>
<li><b>1.</b>网站支持在线交易，交易流程：买家拍下 - 卖家发货 - 买家确认收货 - 交易完成。</li>

	 </div>
  <input type="hidden" name="type" value="1">
  <input type="hidden" name="bh" value="{$bh}">
  <input type="hidden" name="psort" id='psort'>
  <input type="hidden" name="action" value="{$action}">
  <input type="hidden" name="passkey" value="{:passkey()}">
  <input type="hidden" name="verify" value="{$data.name}">
</form>

 </div>
</div>
{include file="bottom"}<script type="text/javascript">
function banKey(text){if(!text)return[];var str='{$bankey}',strs=decodeURIComponent(str).split(','),list=[];strs.forEach(v=>{var v=v.toLowerCase();if(text.toLowerCase().indexOf(v)>-1&&$.inArray(v,list)<0)list.push(v)});return list}
layer_psort=function(){psort='';$(".filelist div").each(function(i){ $(this).find('.icon').html(i+1);psort+=$(this).find('.fdel').attr('id')+","});$('#psort').val(psort)};$('.filelist .fleft,.fright').live('click',function(){var $v=0;if($('.filelist div').length<2){layer.alert("亲，就我1个，您想移哪去？",{icon:0});return false}$(".filelist .file-panel").css({"height":"0"});$this=$(this).closest('div');$athis=$this.prev();$bthis=$athis;if($(this).attr('class')=="fright"){ $athis=$this;$this=$this.next();$bthis=$this}if($bthis.length<=0){ $this=$(".filelist div:first");$athis=$(".filelist div:last");$v=1}$this.animate({top:$athis.position().top-$this.position().top,left:$athis.position().left-$this.position().left},"300",function(){if($v==1){ $athis.after($this);if($('.filelist div').length>2){ $(".filelist div:first").before($athis)}}else{ $athis.before($this)}});$athis.animate({top:$this.position().top-$athis.position().top,left:$this.position().left-$athis.position().left},"300",function(){ $('.filelist div').css({"left":"0","top":"0"});layer_psort()})});$(".filelist div").live('mouseenter',function(){ $(this).find('.file-panel').stop().animate({height:30})});$(".filelist div").live('mouseleave',function(){ $(this).find('.file-panel').stop().animate({height:0})});$('.file-panel a').live({mouseenter:function(){ $(this).find("span").addClass("cur")},mouseleave:function(){ $(this).find("span").removeClass("cur")}});var maxnum=6,stop=0;$(".filelist .fdel").live('click',function(){var $this=$(this);$.ajax({type:"POST",url:"/upload/",async:true,data:"action=del&p={$bh}&object="+$this.attr('id')+"&type=web",success:function(is){var arr=is.split('|');var datas=$.trim(arr[0]);if(datas==0){layer.login('再删除',$this.attr('id'))}else if(datas==1){ $this.closest('div').remove();layer.psort();if($('.filelist div').length<=0){ $('.filelist').hide();return false}}else{layer.alert(arr[1],{icon:datas})}},error:function(){layer.msg('网络异常，请重试');return false}})});var uploader=new plupload.Uploader({runtimes:'html5,flash,silverlight,html4',browse_button:'browse',url:"/upload/",resize:{width:1000},max_retries:1,flash_swf_url:'/Check/Moxie.swf',silverlight_xap_url:'/Check/Moxie.xap',filters:{prevent_duplicates:true,max_file_size:'3mb',mime_types:[{title:"图片文件",extensions:"jpg,png,gif"}]},multi_selection:true});uploader.init();uploader.bind('FilesAdded',function(uploader,files){var newnum=maxnum-parseInt($('.filelist div').length+$('#FileListing tr').length),flen=files.length,fhtml,vhtml='',ehtml='';if(flen>newnum){layer.alert("<strong>最多能上传"+maxnum+"张截图（含已传）</strong>",{icon:2});uploader.splice(newnum,10000)}for(var i=0;i<=flen;i++){if(i==flen){if(ehtml!=''){layer.alert("<strong>以下截图已传过了，不要重复上传</strong><br>"+ehtml,{icon:0})}if(uploader.files.length>0){ $('#pluing').show();$(fhtml).appendTo('#FileListing');$('#pluing u').html(uploader.files.length)}return false}if(i>=newnum){continue}var fname=files[i].name,fid=files[i].id,fSuffix=fname.substr(fname.indexOf(".")),f5name=$.md5(files[i].size+files[i].lastModifiedDate+files[i].type)+fSuffix;vhtml='<tr id="file-'+fid+'"><td>'+fname+'</td><td></td><td align="center"><a onclick=deling("'+fid+'")>取消</a></td></tr>';$(".filelist .fdel").each(function(){if($(this).attr('id')==f5name){vhtml='';uploader.removeFile(fid);ehtml+="【"+fname+"】<br>";return false}});fhtml=fhtml+vhtml}});uploader.bind("BeforeUpload",function(uploader,file){uploader.setOption("multipart_params",{lastDate:file.lastModifiedDate,osize:file.size,number:'{$bh}',action:'add',type:'web',maxnum:maxnum})});uploader.bind("UploadProgress",function(uploader,file){ $('#progress-in').width(uploader.total.percent+"%");$("#file-"+file.id+" td:eq(2)").html("<b>"+file.percent+"%</b>")});uploader.bind("FileUploaded",function(uploader,file,info){ $('#progress-uploaded').html(uploader.total.uploaded);var data=$.parseJSON(info.response);if(data.state!=0){ $fh=$('#progress ul');$fh.show();$('<p><span>'+file.name+'</span><br><b>'+data.state+' >> 继续执行…</b></p>').appendTo($fh);stop=4000}});uploader.bind("UploadComplete",function(uploader){setTimeout("$(\"input[type=submit]\").click()",stop)});uploader.bind("Error",function(uploader,err){if(err.message=='HTTP Error.'){fid=err.file.id;$("#file-"+fid+" td:eq(1)").html("<font color=red>系统出错，代码"+err.code+"</font>");$("#file-"+fid+" td:eq(2)").html('<a onclick=deling("'+fid+'")>删除</a>');return false}layer.alert("<strong>"+err.message+"</strong>",{icon:5})});layui.use('form',function(){var form=layui.form();form.verify({domain:function(value){if(!judge(value,'domain'))return'域名后缀不合法'},money:function(value){if(isNaN(value))return'售价只能填写纯数字！';if(value<100)return'售价不能低于100元'},ip:function(value){if(isNaN(value))return'流量只能填写纯数字！';if(value<100)return'流量不能低于100IP'}});form.on('submit',function(data){var isOK=true,BanKeyTrue=false;if($('input[name=stats]:checked').val()=='links'&&!/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/.test($('input[name=url]').val())){scTop('.delivery');layer.tips('请正确填写统计链接！','input[name=url]',{tips:1});return false}else if($('input[name=stats]:checked').val()=='image'&&parseInt($('.filelist div').length+$('#FileListing tr').length)<=0){scTop('.delivery');layer.tips('至少需上传1张统计截图！','#browse',{tips:1});return false}if($('input[name=verify]').val()==''||$('input[name=verify]').val()!=$('input[name=name]').val()){webcheck();return false}$('.demandtips').remove();editor.$txt.html(editor.$txt.html().replace(/<\/?(cite)[^>]*>/gi,''));$.each(['tit','cdes','txt','azbz'],function(key,name){var input=$('[name='+name+']'),Res=banKey(input.val());if(Res.length>0){var div=input.closest(".layui-form-item"),tips='【'+div.find(".layui-form-label").html().replace(/[^0-9\u4e00-\u9fa5]/g,'')+'】含有违禁关键词：<font class="red">'+Res.join('、')+'</font>',html='<div class="demandtips" style="margin:15px 20px 0 110px;padding:8px 10px 5px 10px"><a class="close" onclick="$(this).parent().fadeOut(\'slow\');" title="关闭提示">X</a><p class="title"><i class="icons" style="margin-top:-12px"></i><b style="font-size:14px;">'+tips+'</b></p></div>';div.prev().attr('class')=='demandtips'?div.prev().find('b').html(tips):div.before(html);if(name=='txt'){Res.forEach(v=>{editor.$txt.html(editor.$txt.html().replace(new RegExp(v,"gm"),'<cite style="background:red;color:#fff;">'+v.trim()+'</cite>'))})}isOK=false;BanKeyTrue=true}});if(BanKeyTrue)scTop(".demandtips:eq(0)",15);if(!isOK){return false}if(uploader.total.queued>0){progress();$('#progress-upload').html(uploader.files.length);uploader.start();return false}else{progress(true);return true}});form.on('checkbox(au)',function(data){var $div=$(data.elem).nextAll("label").eq(0);(!data.elem.checked)?$div.removeClass("curr"):$div.addClass("curr")});form.on('radio(change)',function(data){var $this=$(data.elem).closest("strong");$this.addClass("cur").siblings('strong').removeClass('cur');$this.nextAll(".change_box").children('.box').eq($(data.elem).attr("data")).show().siblings('.box').hide()})});var editor=new wangEditor('content');editor.config.menus=['source','undo','redo','|','bold','underline','eraser','|','fullscreen'];editor.onchange=function(){editor.$txt.find("img").remove()};editor.create();webcheck=function(){layer.load();$.get('/html/webcheck',{name:$('input[name=name]').val()},function(html){layer_ly(html,true,false,'650px','auto')})};$('.app_label').live('click',function(){ $(this).prev().click()});
</script>
</body>
</html>